package com.csxy.yhj.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Schema(name = "服务基本信息", description = "编辑服务基本信息的表单对象")
@Data
public class CareInfoForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(name = "服务ID")
    private String id;

    @Schema(name = "服务护工ID")
    private String teacherId;

    @Schema(name = "服务列表ID")
    private String subjectId;

    @Schema(name = "一级分类ID")
    private String subjectParentId;

    @Schema(name = "读物标题")
    private String title;

    @Schema(name = "服务销售价格，设置为0则可免费观看")
    private BigDecimal price;

    @Schema(name = "总课时")
    private Integer lessonNum;

    @Schema(name = "服务封面图片路径")
    private String cover;

    @Schema(name = "服务简介")
    private String description;

    @Schema(name = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtCreate;


    @Schema(name = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
